.class public Lcom/netease/newsreader/activity/VoteSubmit;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "VoteSubmit.java"


# instance fields
.field private addone:Landroid/widget/TextView;

.field private already_num:Landroid/widget/TextView;

.field private bottomin:Landroid/view/animation/Animation;

.field private checkVoteItemClickListener:Landroid/view/View$OnClickListener;

.field private clickListener:Landroid/view/View$OnClickListener;

.field private flag:I

.field private handler:Landroid/os/Handler;

.field private isDo:Z

.field private is_success:Z

.field private itemId:Ljava/lang/String;

.field private itemList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private p:Landroid/app/ProgressDialog;

.field private percentLength:I

.field private radios:[Landroid/widget/RadioButton;

.field private themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

.field private user_attitude:Landroid/widget/TextView;

.field private vb:Lcom/netease/newsreader/bean/VoteBean;

.field private voteId:Ljava/lang/String;

.field voteItems:[Landroid/widget/TextView;

.field private voteNum:I

.field private vote_cancel:Landroid/widget/Button;

.field private vote_exit:Landroid/widget/Button;

.field private vote_item_list_lay:Landroid/widget/LinearLayout;

.field private vote_question:Landroid/widget/TextView;

.field private vote_see:Landroid/view/animation/Animation;

.field private vote_submit:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 39
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    .line 52
    iput v1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->percentLength:I

    .line 207
    new-instance v0, Lcom/netease/newsreader/activity/VoteSubmit$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/VoteSubmit$1;-><init>(Lcom/netease/newsreader/activity/VoteSubmit;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->clickListener:Landroid/view/View$OnClickListener;

    .line 214
    new-instance v0, Lcom/netease/newsreader/activity/VoteSubmit$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/VoteSubmit$2;-><init>(Lcom/netease/newsreader/activity/VoteSubmit;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->handler:Landroid/os/Handler;

    .line 251
    iput-boolean v1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->is_success:Z

    .line 252
    iput-boolean v1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->isDo:Z

    .line 365
    new-instance v0, Lcom/netease/newsreader/activity/VoteSubmit$3;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/VoteSubmit$3;-><init>(Lcom/netease/newsreader/activity/VoteSubmit;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->checkVoteItemClickListener:Landroid/view/View$OnClickListener;

    .line 39
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter

    .prologue
    .line 61
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->p:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/VoteSubmit;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 251
    iput-boolean p1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->is_success:Z

    return-void
.end method

.method static synthetic access$10(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 214
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$11(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 65
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->addone:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/VoteSubmit;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 252
    iput-boolean p1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->isDo:Z

    return-void
.end method

.method static synthetic access$3(Lcom/netease/newsreader/activity/VoteSubmit;)[Landroid/widget/RadioButton;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->radios:[Landroid/widget/RadioButton;

    return-object v0
.end method

.method static synthetic access$4(Lcom/netease/newsreader/activity/VoteSubmit;)Lcom/netease/newsreader/bean/VoteBean;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    return-object v0
.end method

.method static synthetic access$5(Lcom/netease/newsreader/activity/VoteSubmit;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 59
    iput-object p1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->voteId:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$6(Lcom/netease/newsreader/activity/VoteSubmit;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-object p1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->itemId:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$7(Lcom/netease/newsreader/activity/VoteSubmit;Landroid/app/ProgressDialog;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 61
    iput-object p1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->p:Landroid/app/ProgressDialog;

    return-void
.end method

.method static synthetic access$8(Lcom/netease/newsreader/activity/VoteSubmit;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 59
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->voteId:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/netease/newsreader/activity/VoteSubmit;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->itemId:Ljava/lang/String;

    return-object v0
.end method

.method private getBGDrawable(I)Landroid/graphics/drawable/Drawable;
    .locals 3
    .parameter "i"

    .prologue
    .line 347
    const/4 v0, 0x0

    .line 348
    .local v0, d:Landroid/graphics/drawable/Drawable;
    packed-switch p1, :pswitch_data_0

    .line 362
    :goto_0
    return-object v0

    .line 350
    :pswitch_0
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f020108

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 351
    goto :goto_0

    .line 353
    :pswitch_1
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f02010d

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 354
    goto :goto_0

    .line 356
    :pswitch_2
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f020112

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 357
    goto :goto_0

    .line 359
    :pswitch_3
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f020115

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    goto :goto_0

    .line 348
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method private initViews()V
    .locals 1

    .prologue
    .line 381
    const v0, 0x7f0c0171

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/VoteSubmit;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_question:Landroid/widget/TextView;

    .line 382
    const v0, 0x7f0c0175

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/VoteSubmit;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->user_attitude:Landroid/widget/TextView;

    .line 383
    const v0, 0x7f0c0176

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/VoteSubmit;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->already_num:Landroid/widget/TextView;

    .line 385
    const v0, 0x7f0c0178

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/VoteSubmit;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_item_list_lay:Landroid/widget/LinearLayout;

    .line 387
    const v0, 0x7f0c017a

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/VoteSubmit;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_submit:Landroid/widget/Button;

    .line 388
    const v0, 0x7f0c017b

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/VoteSubmit;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_cancel:Landroid/widget/Button;

    .line 389
    const v0, 0x7f0c017c

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/VoteSubmit;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_exit:Landroid/widget/Button;

    .line 390
    return-void
.end method


# virtual methods
.method public onApplyTheme()V
    .locals 8

    .prologue
    const v7, 0x7f0c017a

    const v6, 0x7f08001d

    const v5, 0x7f08001b

    const v4, 0x7f080027

    const v3, 0x7f020088

    .line 393
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 394
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c0172

    const v2, 0x7f080029

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroudColor(Landroid/app/Activity;II)V

    .line 395
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    invoke-virtual {v0, p0, v7, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 396
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c017b

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 397
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c017c

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 398
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    invoke-virtual {v0, p0, v7, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 399
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c017b

    invoke-virtual {v0, p0, v1, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 400
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c017c

    invoke-virtual {v0, p0, v1, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 401
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    iget-object v1, p0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_question:Landroid/widget/TextView;

    invoke-virtual {v0, p0, v1, v6}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 402
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c0170

    invoke-virtual {v0, p0, v1, v6}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 403
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c0175

    invoke-virtual {v0, p0, v1, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 404
    iget-object v0, p0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v1, 0x7f0c0177

    invoke-virtual {v0, p0, v1, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 405
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 20
    .parameter "savedInstanceState"

    .prologue
    .line 70
    invoke-super/range {p0 .. p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 71
    const/4 v1, 0x1

    move-object/from16 v0, p0

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/activity/VoteSubmit;->requestWindowFeature(I)Z

    .line 72
    const v1, 0x7f030079

    move-object/from16 v0, p0

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/activity/VoteSubmit;->setContentView(I)V

    .line 73
    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    .line 74
    const v1, 0x7f04001b

    move-object/from16 v0, p0

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->bottomin:Landroid/view/animation/Animation;

    .line 75
    const v1, 0x7f04001c

    move-object/from16 v0, p0

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_see:Landroid/view/animation/Animation;

    .line 77
    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "vb"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v9

    .line 78
    .local v9, b:Landroid/os/Bundle;
    const-string v1, "votebean"

    invoke-virtual {v9, v1}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v1

    check-cast v1, Lcom/netease/newsreader/bean/VoteBean;

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    .line 79
    const-string v1, "already_vote"

    invoke-virtual {v9, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    move-object/from16 v0, p0

    iput v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->flag:I

    .line 81
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    invoke-virtual {v1}, Lcom/netease/newsreader/bean/VoteBean;->getItemLsit()Ljava/util/List;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    .line 84
    new-instance v18, Landroid/content/ContentValues;

    invoke-direct/range {v18 .. v18}, Landroid/content/ContentValues;-><init>()V

    .line 85
    .local v18, values:Landroid/content/ContentValues;
    const-string v1, "vote_id"

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    invoke-virtual {v2}, Lcom/netease/newsreader/bean/VoteBean;->getId()Ljava/lang/String;

    move-result-object v2

    move-object/from16 v0, v18

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 86
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "vote_table"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    const-string v5, "vote_id"

    aput-object v5, v3, v4

    .line 87
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "vote_id="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v5, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    invoke-virtual {v5}, Lcom/netease/newsreader/bean/VoteBean;->getId()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    const-string v8, "auto_id desc"

    .line 86
    invoke-virtual/range {v1 .. v8}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v10

    .line 89
    .local v10, cur:Landroid/database/Cursor;
    invoke-interface {v10}, Landroid/database/Cursor;->getCount()I

    move-result v1

    move-object/from16 v0, p0

    iput v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteNum:I

    .line 90
    invoke-interface {v10}, Landroid/database/Cursor;->close()V

    .line 92
    invoke-direct/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->initViews()V

    .line 93
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_question:Landroid/widget/TextView;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    invoke-virtual {v2}, Lcom/netease/newsreader/bean/VoteBean;->getItemQuestion()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 95
    move-object/from16 v0, p0

    iget v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->flag:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    .line 96
    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->updateView()V

    .line 123
    :cond_0
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_submit:Landroid/widget/Button;

    new-instance v2, Lcom/netease/newsreader/activity/VoteSubmit$4;

    move-object/from16 v0, p0

    invoke-direct {v2, v0}, Lcom/netease/newsreader/activity/VoteSubmit$4;-><init>(Lcom/netease/newsreader/activity/VoteSubmit;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 203
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_exit:Landroid/widget/Button;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/activity/VoteSubmit;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 204
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_cancel:Landroid/widget/Button;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/activity/VoteSubmit;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 205
    return-void

    .line 98
    :cond_1
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->user_attitude:Landroid/widget/TextView;

    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b003e

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 99
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->already_num:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v3, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    invoke-virtual {v3}, Lcom/netease/newsreader/bean/VoteBean;->getAllVoteNum()J

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 101
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    new-array v1, v1, [Landroid/widget/RadioButton;

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->radios:[Landroid/widget/RadioButton;

    .line 102
    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v11

    .line 103
    .local v11, flater:Landroid/view/LayoutInflater;
    new-instance v14, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v14, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 105
    .local v14, params:Landroid/widget/LinearLayout$LayoutParams;
    const/4 v12, 0x0

    .local v12, i:I
    :goto_0
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v12, v1, :cond_0

    .line 106
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v1, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/util/Map;

    .line 107
    .local v13, m:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const v1, 0x7f030074

    const/4 v2, 0x0

    invoke-virtual {v11, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v19

    .line 108
    .local v19, vi:Landroid/view/View;
    const v1, 0x7f0c0164

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v15

    check-cast v15, Landroid/widget/RadioButton;

    .line 109
    .local v15, rb:Landroid/widget/RadioButton;
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->radios:[Landroid/widget/RadioButton;

    aput-object v15, v1, v12

    .line 110
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->radios:[Landroid/widget/RadioButton;

    aget-object v1, v1, v12

    const-string v2, "id"

    invoke-virtual {v2}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v13, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/RadioButton;->setTag(Ljava/lang/Object;)V

    .line 111
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->radios:[Landroid/widget/RadioButton;

    aget-object v1, v1, v12

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/netease/newsreader/activity/VoteSubmit;->checkVoteItemClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/RadioButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 113
    const v1, 0x7f0c0163

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v16

    check-cast v16, Landroid/widget/TextView;

    .line 114
    .local v16, text1:Landroid/widget/TextView;
    new-instance v1, Ljava/lang/StringBuilder;

    add-int/lit8 v2, v12, 0x1

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ". "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    move-object/from16 v0, v16

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 116
    const v1, 0x7f0c0165

    move-object/from16 v0, v19

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v17

    check-cast v17, Landroid/widget/TextView;

    .line 117
    .local v17, text2:Landroid/widget/TextView;
    const-string v1, "name"

    invoke-interface {v13, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    move-object/from16 v0, v17

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 118
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_item_list_lay:Landroid/widget/LinearLayout;

    move-object/from16 v0, v19

    invoke-virtual {v1, v0, v14}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 105
    add-int/lit8 v12, v12, 0x1

    goto/16 :goto_0
.end method

.method protected updateView()V
    .locals 20

    .prologue
    .line 254
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_submit:Landroid/widget/Button;

    const/16 v15, 0x8

    invoke-virtual {v14, v15}, Landroid/widget/Button;->setVisibility(I)V

    .line 255
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_cancel:Landroid/widget/Button;

    const/16 v15, 0x8

    invoke-virtual {v14, v15}, Landroid/widget/Button;->setVisibility(I)V

    .line 256
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_exit:Landroid/widget/Button;

    const/4 v15, 0x0

    invoke-virtual {v14, v15}, Landroid/widget/Button;->setVisibility(I)V

    .line 258
    move-object/from16 v0, p0

    iget-boolean v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->isDo:Z

    if-nez v14, :cond_0

    move-object/from16 v0, p0

    iget v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteNum:I

    const/4 v15, 0x1

    if-ne v14, v15, :cond_1

    .line 259
    :cond_0
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->user_attitude:Landroid/widget/TextView;

    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getResources()Landroid/content/res/Resources;

    move-result-object v15

    const v16, 0x7f0b003c

    invoke-virtual/range {v15 .. v16}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 260
    const/4 v14, 0x0

    move-object/from16 v0, p0

    iput-boolean v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->isDo:Z

    .line 264
    :goto_0
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->already_num:Landroid/widget/TextView;

    new-instance v15, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/netease/newsreader/bean/VoteBean;->getAllVoteNum()J

    move-result-wide v16

    const-wide/16 v18, 0x1

    add-long v16, v16, v18

    invoke-static/range {v16 .. v17}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 266
    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v14, -0x1

    const/4 v15, -0x2

    invoke-direct {v6, v14, v15}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 268
    .local v6, params:Landroid/widget/LinearLayout$LayoutParams;
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_item_list_lay:Landroid/widget/LinearLayout;

    invoke-virtual {v14}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 270
    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v1

    .line 272
    .local v1, flater:Landroid/view/LayoutInflater;
    new-instance v5, Landroid/util/DisplayMetrics;

    invoke-direct {v5}, Landroid/util/DisplayMetrics;-><init>()V

    .line 273
    .local v5, metrics:Landroid/util/DisplayMetrics;
    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v14

    invoke-interface {v14}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v14

    invoke-virtual {v14, v5}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 274
    iget v8, v5, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 275
    .local v8, s:I
    int-to-double v14, v8

    const-wide v16, 0x3fe6666666666666L

    mul-double v14, v14, v16

    double-to-int v14, v14

    move-object/from16 v0, p0

    iput v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->percentLength:I

    .line 277
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v14

    new-array v14, v14, [Landroid/widget/TextView;

    move-object/from16 v0, p0

    iput-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteItems:[Landroid/widget/TextView;

    .line 279
    const/4 v9, 0x0

    .line 280
    .local v9, sum:I
    const/4 v2, 0x0

    .local v2, i:I
    :goto_1
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v14

    if-lt v2, v14, :cond_2

    .line 315
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->bottomin:Landroid/view/animation/Animation;

    new-instance v15, Lcom/netease/newsreader/activity/VoteSubmit$5;

    move-object/from16 v0, p0

    invoke-direct {v15, v0}, Lcom/netease/newsreader/activity/VoteSubmit$5;-><init>(Lcom/netease/newsreader/activity/VoteSubmit;)V

    invoke-virtual {v14, v15}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 330
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_see:Landroid/view/animation/Animation;

    new-instance v15, Lcom/netease/newsreader/activity/VoteSubmit$6;

    move-object/from16 v0, p0

    invoke-direct {v15, v0}, Lcom/netease/newsreader/activity/VoteSubmit$6;-><init>(Lcom/netease/newsreader/activity/VoteSubmit;)V

    invoke-virtual {v14, v15}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 344
    return-void

    .line 262
    .end local v1           #flater:Landroid/view/LayoutInflater;
    .end local v2           #i:I
    .end local v5           #metrics:Landroid/util/DisplayMetrics;
    .end local v6           #params:Landroid/widget/LinearLayout$LayoutParams;
    .end local v8           #s:I
    .end local v9           #sum:I
    :cond_1
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->user_attitude:Landroid/widget/TextView;

    invoke-virtual/range {p0 .. p0}, Lcom/netease/newsreader/activity/VoteSubmit;->getResources()Landroid/content/res/Resources;

    move-result-object v15

    const v16, 0x7f0b003b

    invoke-virtual/range {v15 .. v16}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 281
    .restart local v1       #flater:Landroid/view/LayoutInflater;
    .restart local v2       #i:I
    .restart local v5       #metrics:Landroid/util/DisplayMetrics;
    .restart local v6       #params:Landroid/widget/LinearLayout$LayoutParams;
    .restart local v8       #s:I
    .restart local v9       #sum:I
    :cond_2
    const v14, 0x7f030075

    const/4 v15, 0x0

    invoke-virtual {v1, v14, v15}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 282
    .local v4, itemSee:Landroid/view/View;
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;

    const v15, 0x7f080029

    move-object/from16 v0, p0

    invoke-virtual {v14, v0, v4, v15}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroudColor(Landroid/content/Context;Landroid/view/View;I)V

    .line 283
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v14, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/util/Map;

    const-string v15, "num"

    invoke-interface {v14, v15}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    .line 284
    .local v3, itemNum:I
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vb:Lcom/netease/newsreader/bean/VoteBean;

    invoke-virtual {v14}, Lcom/netease/newsreader/bean/VoteBean;->getAllVoteNum()J

    move-result-wide v14

    invoke-static {v3, v14, v15}, Lcom/netease/newsreader/util/StringUtil;->getPercent(IJ)F

    move-result v7

    .line 286
    .local v7, percent:F
    const v14, 0x7f0c0166

    invoke-virtual {v4, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v13

    check-cast v13, Landroid/widget/TextView;

    .line 287
    .local v13, titleNum:Landroid/widget/TextView;
    new-instance v14, Ljava/lang/StringBuilder;

    add-int/lit8 v15, v2, 0x1

    invoke-static {v15}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v15, ". "

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 289
    const v14, 0x7f0c0167

    invoke-virtual {v4, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v12

    check-cast v12, Landroid/widget/TextView;

    .line 290
    .local v12, textTitle:Landroid/widget/TextView;
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v14, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/util/Map;

    const-string v15, "name"

    invoke-interface {v14, v15}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v12, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 291
    move-object/from16 v0, p0

    iget v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->flag:I

    const/4 v15, 0x1

    if-eq v14, v15, :cond_3

    .line 292
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->radios:[Landroid/widget/RadioButton;

    aget-object v14, v14, v2

    invoke-virtual {v14}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v14

    if-eqz v14, :cond_3

    .line 293
    move-object/from16 v0, p0

    iget-boolean v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->is_success:Z

    if-eqz v14, :cond_3

    .line 294
    const v14, 0x7f0c0168

    invoke-virtual {v4, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v14

    check-cast v14, Landroid/widget/TextView;

    move-object/from16 v0, p0

    iput-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->addone:Landroid/widget/TextView;

    .line 295
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->addone:Landroid/widget/TextView;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/netease/newsreader/activity/VoteSubmit;->bottomin:Landroid/view/animation/Animation;

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 299
    :cond_3
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteItems:[Landroid/widget/TextView;

    const v14, 0x7f0c0169

    invoke-virtual {v4, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v14

    check-cast v14, Landroid/widget/TextView;

    aput-object v14, v15, v2

    .line 300
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteItems:[Landroid/widget/TextView;

    aget-object v14, v14, v2

    move-object/from16 v0, p0

    iget v15, v0, Lcom/netease/newsreader/activity/VoteSubmit;->percentLength:I

    int-to-float v15, v15

    mul-float/2addr v15, v7

    float-to-int v15, v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setWidth(I)V

    .line 301
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteItems:[Landroid/widget/TextView;

    aget-object v14, v14, v2

    const/16 v15, 0xa

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setHeight(I)V

    .line 302
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteItems:[Landroid/widget/TextView;

    aget-object v14, v14, v2

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/netease/newsreader/activity/VoteSubmit;->getBGDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 303
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->voteItems:[Landroid/widget/TextView;

    aget-object v14, v14, v2

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_see:Landroid/view/animation/Animation;

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 305
    const v14, 0x7f0c016a

    invoke-virtual {v4, v14}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/TextView;

    .line 306
    .local v11, textPercent:Landroid/widget/TextView;
    const/high16 v14, 0x42c8

    mul-float/2addr v14, v7

    float-to-int v10, v14

    .line 307
    .local v10, temp:I
    add-int/2addr v9, v10

    .line 308
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->itemList:Ljava/util/List;

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v14

    add-int/lit8 v14, v14, -0x1

    if-ne v2, v14, :cond_4

    .line 309
    rsub-int/lit8 v14, v9, 0x64

    add-int/2addr v10, v14

    .line 310
    :cond_4
    new-instance v14, Ljava/lang/StringBuilder;

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v15, "%"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v11, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 312
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/netease/newsreader/activity/VoteSubmit;->vote_item_list_lay:Landroid/widget/LinearLayout;

    invoke-virtual {v14, v4, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 280
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_1
.end method
